<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">

</head>
<body>
<script>
    console.log('xxx',  123)
    //  JS + 类型 =  TS
    //  TS + 鸿蒙独有的语法 =  arkTS

    // 对象的特殊写法和访问属性写法

    const obj = {
        name: 'zs',
        age: 18,
         // 对象的属性名本质上就是字符串
        'content-type': 'json'
    }


    console.log('obj.age', obj['age'])
    console.log('obj.age', obj.age)


</script>
</body>
</html>